/*
 * networkhandler.h
 *
 *  Created on: 14/11/2009
 *      Author: andre
 */


#ifndef NETWORKHANDLER_H_
#define NETWORKHANDLER_H_

#include "bencoder.h"

#define ERROR_SENDING_BENCODED_RESPONSE -1
#define ERROR_GETTING_ANNOUNCE_RESPONSE -2
#define ERROR_SENDING_HTTP_OK_STATUS -3

int sendTrackerBencodedResponse(int sock, BencodedResponse *br);
int sendHttpOKStatus(int sock);

#endif /* NETWORKHANDLER_H_ */
